import {http} from '@/utils/http'

// 添加分类记录
export function addArticleTopics(data:any) {
    return http.post<any>('/admin/articleCategory/addArticleCategory', data)
}

// 修改分类记录
export function updateArticleCategory(data:any) {
    return http.post<any>('/admin/articleCategory/updateArticleCategory', data)
}

// 删除分类记录
export function deleteArticleCategory(id:string) {
    return http.post<any>('/admin/articleCategory/deleteArticleCategory/'+id)
}

// 获取分类详情
export function getArticleCategory(id:any) {
    return http.post<any>('/admin/articleCategory/getArticleCategory/'+id)
}

// 获取分类分页列表
export function getArticleCategoryPage(data:any) {
    return http.post<any>('/admin/articleCategory/getArticleCategoryPage', data)
}

// 获取分类列表
export function getArticleCategoryList(data:any) {
    return http.post<any>('/admin/articleCategory/getArticleCategoryList', data)
}

// 获取分类列表
export function getAllArticleCategoryTreeList(data: any) {
    return http.post<any>('/admin/articleCategory/getAllArticleCategoryTreeList', data)
}



















